﻿using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using Langexplr.Abc;

namespace AbcLibrary.Tests
{
    [TestFixture]
    public class ConstantPoolCreatorTests
    {
        [Test]
        public void TestNameCreation()
        {
      /*      ConstantPoolCreator cpoolCreator = new ConstantPoolCreator();

            int x1 = cpoolCreator.GetMultiname(new string[] { "abc", "" }, "Fulano");

            //System.Diagnostics.Debugger.Break();
            int x2 = cpoolCreator.GetMultiname(new string[] { "abc", "" }, "Fulano");

            

            int x3 = cpoolCreator.GetMultiname(new string[] { "abc", "" }, "Fulano2");

            Assert.AreEqual(x1, x2,"Adding same name");
            Assert.AreNotEqual(x1, x3, "Adding different name");

            
            ConstantPoolInfo constantPool = cpoolCreator.CreateConstantPool();

            QualifiedName qName1 = constantPool.SolveMultiName(x1);

            Assert.AreEqual(QualifiedName.tag_MQualifiedName, qName1.Tag,"Tag name");
            Assert.AreEqual(((QualifiedName._MQualifiedName)qName1).MQualifiedName2, "Fulano");
           */ 
        }
    }
}
